package com.geline.easytrans.dict;

import cn.hutool.core.util.StrUtil;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 字典类型Item
 * @author: mengxin
 * @date: 2023/5/25 17:34
 */
@Getter
@Setter
public class DictItem implements Serializable {

    private String dictType;
    private String dictName;

    public DictItem(){
    }

    public DictItem(String dictType, String dictName){
        this.dictType = dictType;
        this.dictName = StrUtil.isBlank(dictName) ? dictType : dictName;
    }
}
